﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Reallocation.aspx.cs" Inherits="Hisun.View.Calculation.Reallocation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 254px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
       <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">成本重分配设置</div></div>
    <div class ="CommonPage_Body">

      <table style="width:100%;">
            <tr>
                <td colspan="4">
              
                </td>
            </tr>
            <tr>
                <td colspan="4">
              
                    <asp:Label ID="Label12" runat="server" SkinID="Label" 
                        Text="若成本重分配设置信息变更，请在成本计算之前，刷新当前会计期间成本重分配设置信息。"></asp:Label>
                    <asp:Button SkinID = "Button" ID="Button_LoadToAp" runat="server" onclick="Button_LoadToAp_Click" 
                        Text="刷新" />
              
                </td>
            </tr>
            <tr>
                <td colspan="4" style="background-color: #C0C0C0">
              
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label7" runat="server" Text="作业中心列表" SkinID="Label"></asp:Label>
                </td>
                <td rowspan="5" style="background-color: #C0C0C0" width="2">
                    &nbsp;</td>
                <td>
                    <asp:Label ID="Label8" runat="server" Text="已选定成本账户" SkinID="Label"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label9" runat="server" Text="备选成本账户" SkinID="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label6" runat="server" Text="作业中心名称：" SkinID="Label"></asp:Label>
                          <asp:TextBox ID="TextBox_QueryCenterName" runat="server" SkinID="TextBox" 
                        Width="101px"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_QueryCenter" runat="server" Text="查询" 
                        onclick="Button_QueryCenter_Click" />
                </td>
                <td>
                    <asp:Label ID="Label_CenterName" runat="server" Text="当前作业中心：" SkinID="Label"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label11" runat="server" Text="成本账户ID：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_QueryUnselectedProductDId" runat="server" 
                        Width="106px"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_QueryUnselectedProductId" runat="server" Text="查询" 
                        onclick="Button_QueryUnselectedProductId_Click" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_Selected_All" runat="server" Text="全选" 
                        onclick="Button_Selected_All_Click" />
                    <asp:Button SkinID = "Button" ID="Button_Selected_UnAll" runat="server" Text="反选" 
                        onclick="Button_Selected_UnAll_Click" />
                    <asp:Button SkinID = "Button" ID="Button_Selected_Del" runat="server" Text="删除" 
                        onclick="Button_Selected_Del_Click" />
                </td>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_UnSelected_All" runat="server" Text="全选" 
                        onclick="Button_UnSelected_All_Click" />
                    <asp:Button SkinID = "Button" ID="Button_UnSelected_Unall" runat="server" Text="反选" 
                        onclick="Button_UnSelected_Unall_Click" />
                    <asp:Button SkinID = "Button" ID="Button_Unselected_Save" runat="server" Text="确定" 
                        onclick="Button_Unselected_Save_Click" />
                </td>
            </tr>
            <tr>
                <td class="style1" valign="top">
                    <asp:GridView ID="GridView_CostCenter" runat="server" 
                        AutoGenerateColumns="False" SkinID="GridView">
                        <Columns>
                            <asp:BoundField DataField="作业中心名称" HeaderText="作业中心名称" />
                            <asp:BoundField DataField="作业中心ID" HeaderText="作业中心ID" Visible="False" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button SkinID = "Button" ID="Button_CenterSelect" runat="server" 
                                        CommandArgument='<%# Eval("作业中心ID") %>' oncommand="Button_CenterSelect_Command" 
                                        Text="选择" />
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
                <td valign="top">
                    <asp:GridView ID="GridView_SelectProduct" runat="server" 
                        AutoGenerateColumns="False" SkinID="GridView">
                        <Columns>
                            <asp:BoundField DataField="成本账户ID" HeaderText="成本账户ID" />
                            <asp:BoundField DataField="成本账户名称" HeaderText="成本账户名称" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox_Selected" runat="server" Checked='<%# Eval("选择") %>' 
                                        SkinID="CheckBox" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
                <td valign="top">
                    <asp:GridView ID="GridView_UnselectProduct" runat="server" 
                        AutoGenerateColumns="False" SkinID="GridView">
                        <Columns>
                            <asp:BoundField DataField="成本账户ID" HeaderText="成本账户ID" />
                            <asp:BoundField DataField="成本账户名称" HeaderText="成本账户名称" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox_UnSelected" runat="server" 
                                        Checked='<%# Eval("选择") %>' SkinID="CheckBox" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:HiddenField ID="HiddenField_CenterId" runat="server" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div></div>
    </form>
</body>
</html>
<%= alert %>